﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp6
{
     public class Student
    {
        public string name;
        public int studentCode;
        public int className;

        public  Student(string name,int studentCode,int className)
        {
            this.name = name;
            this.studentCode = studentCode;
            this.className = className;
        }

        public void StudentInfo()
        {
            Console.WriteLine("学生姓名："+name);
            Console.WriteLine("学号："+studentCode);
            Console.WriteLine("班级："+className+"班");
        }

        ~Student()
        {
            Console.WriteLine("能用吗");
        }
        
    }
}
